x = 0.0:0.5:10.0;
y = [2.9,2.7,4.8,5.3,7.1,7.6,7.7,7.6,9.4,9.0,9.6,10.0,10.2,9.7,8.3,8.4,9.0,8.3,6.6,6.7,4.1];
a = DLS(x,y);
a = a(end:-1:1);
disp("The result is "+ a(1) + "x^2 + " + a(2) + "x + " + a(3) + ".");
t=0:0.02:10;
plot(t,polyval(a,t),'k',x,y,'o');
